package com.campus.response;

import lombok.Getter;


@Getter
public enum ResultCode {
    ALL_SUCCESS(200,"操作成功"),
    NO_ACCESS(201,"权限不足"),
    NO_LOGIN(201,"用户未登录"),
    ERROR(201,"提供参数错误"),
    NO_ACTIVITY(201,"活动不存在"),
    NO_REGISTER(201,"用户未注册"),
    ERROR_USERNAME_PASSWORD(201,"用户名或密码错误"),
    ERROR_NO_PUBLISH(201,"活动不存在或未发布"),
    ERROR_NO_TEACHER(201,"教师不存在"),
    ERROR_HAVE_USER(201,"用户已存在"),
    ERROR_ROLE(201,"非法用户")



    ;
    private final Integer code;
    private final String message;
    ResultCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

}
